﻿<Page
    x:Class="RichMan4LApp.LoadingPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:RichMan4LApp"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">

	<Grid>
		<Grid.ColumnDefinitions>
			<ColumnDefinition/>
			<ColumnDefinition Width="80"/>
		</Grid.ColumnDefinitions>
		<Rectangle x:Name="BackGroundRect" Fill="{StaticResource Lime}" Grid.ColumnSpan="2"/>
		<MediaElement x:Name="mediaElement" Margin="0" Grid.ColumnSpan="2"/>
		<Grid Margin="0,100,0,0" HorizontalAlignment="Right" VerticalAlignment="Center">
			<Grid.RowDefinitions>
				<RowDefinition/>
				<RowDefinition Height="Auto"/>
			</Grid.RowDefinitions>
			<TextBlock TextWrapping="Wrap" Text="Loading" FontSize="{StaticResource PageTitleFontSize}" FontFamily="{StaticResource Font}" Margin="0"/>
			<TextBlock x:Name="NowState" HorizontalAlignment="Right" Margin="0" TextWrapping="Wrap" Text="TextBlock" FontFamily="{StaticResource Font}" FontSize="{StaticResource FontSize}" Grid.Row="1"/>
			<TextBlock x:Name="NextState" HorizontalAlignment="Right" Margin="0" TextWrapping="Wrap" Text="TextBlock" FontFamily="{StaticResource Font}" FontSize="{StaticResource FontSize}" Grid.Row="1" RenderTransformOrigin="0.5,0.5">
				<TextBlock.RenderTransform>
					<CompositeTransform TranslateY="{Binding ActualHeight, ElementName=NextState, Mode=OneWay}"/>
				</TextBlock.RenderTransform>
			</TextBlock>
		</Grid>

	</Grid>
</Page>
